package cn.sunlelin.educationserver.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Coursetype {
    private Integer coursetypeId;
    private String coursetypeName;
    private Integer fathertypeId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:SS", timezone = "Asia/Shanghai")

    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:SS", timezone = "Asia/Shanghai")

    private Date updateTime;
    private String delFlag;

    public Coursetype() {
    }

    public Coursetype(Integer coursetypeId, String coursetypeName, Integer fathertypeId, Date createTime, Date updateTime, String delFlag) {
        this.coursetypeId = coursetypeId;
        this.coursetypeName = coursetypeName;
        this.fathertypeId = fathertypeId;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.delFlag = delFlag;
    }

    public Integer getCoursetypeId() {
        return coursetypeId;
    }

    public void setCoursetypeId(Integer coursetypeId) {
        this.coursetypeId = coursetypeId;
    }

    public String getCoursetypeName() {
        return coursetypeName;
    }

    public void setCoursetypeName(String coursetypeName) {
        this.coursetypeName = coursetypeName;
    }

    public Integer getFathertypeId() {
        return fathertypeId;
    }

    public void setFathertypeId(Integer fathertypeId) {
        this.fathertypeId = fathertypeId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return "Coursetype{" +
                "coursetypeId=" + coursetypeId +
                ", coursetypeName='" + coursetypeName + '\'' +
                ", fathertypeId=" + fathertypeId +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", delFlag='" + delFlag + '\'' +
                '}';
    }
}
